home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1995 #5 & #6
/
Amiga Plus CD - 1995 - No. 5 and 6.iso
/
pd
/
netz
/
term
/
extras
/
source
/
gtlayout-source.lha
/
LTP_Atol.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-03-25
|
399b
|
27 lines
/* GadTools layout toolkit
**
** Copyright © 1993-1995 by Olaf `Olsen' Barthel
** Freely distributable.
*/
#include "gtlayout_global.h"
ULONG __regargs
LTP_Atol(STRPTR String)
{
ULONG Value = 0;
while(*String == ' ' || *String == '\t')
String++;
while(*String)
{
if(*String >= '0' && *String <= '9')
Value = (Value * 10) + (*String++) - '0';
else
break;
}
return(Value);
}